<div data-role="header" data-position="fixed">
    <a href="#" data-icon="back" class="back ui-btn-left">取消</a>
    <h1><% if(typeof(id)!="undefined" && id!="") {%>编辑笔记<%} else {%>新建笔记<%}%></h1>
    <a href="#notes/add" class="ui-btn-right" data-theme="b" id="saveBtn" data-icon="check" data-role="button">保存</a>
</div>

<div data-role="content" id="newNoteContentDiv">
<p><b><%= dateInfo %></b></p>
<% if(typeof(id)!="undefined" && id!="") {%><input type="hidden" id="hiddenId" value=<%=id %> /><%}%>
    <textarea id="newNoteContent" placeholder="请输入内容"><%= content %></textarea>
    <%if (imageContent!="undefined" && imageContent !="") {%>  <img id="photoimg" src=<%=imageContent %> /> <%}%>
</div>

<div  data-position="fixed">
        <fieldset data-role="controlgroup"  data-type="horizontal" data-mini="true" style="padding-left: 15px;">
            <input type="radio" name="category-choice" id="category-blue" data-theme="e" value="category-blue"  />
            <label for="category-blue" ><img src="./css/images/category-blue.png" /></label>
            <input type="radio" name="category-choice" id="category-green" data-theme="e" value="category-green" />
            <label for="category-green" ><img src="./css/images/category-green.png" /> </label>
            <input type="radio" name="category-choice" id="category-pink" data-theme="e" value="category-pink"  />
            <label for="category-pink" ><img src="./css/images/category-pink.png"  /></label>
            <input type="radio" name="category-choice" id="category-purple" data-theme="e" value="category-purple" />
            <label for="category-purple" ><img src="./css/images/category-purple.png" /></label>
            <input type="radio" name="category-choice" id="category-red" data-theme="e" value="category-red" />
            <label for="category-red" ><img src="./css/images/category-red.png" /></label>
            <input type="radio" name="category-choice" id="category-yellow" data-theme="e" value="category-yellow" />
            <label for="category-yellow" ><img src="./css/images/category-yellow.png" /></label>
        </fieldset>
        <fieldset  data-role="controlgroup" data-type="horizontal" style="padding-left: 15px;">
            <a href="#notes/addimage" data-role="button" data-icon="mininote-camera" data-theme="e" >拍照</a>
            <a href="#notes/weibo" data-role="button" data-icon="mininote-weibo" data-theme="e" >发微博</a>
        </fieldset>
    </div>
</div>